package com.atm.thirdplt.common.core.domain.his;

import com.thoughtworks.xstream.annotations.XStreamAlias;

import javax.xml.bind.annotation.XmlElement;
import java.io.Serializable;
import java.util.Date;

/**
 * his手术申请预约信息实体
 *
 * @author atm
 */
@XStreamAlias("Row")
public class HisOperationSchedule implements Serializable {

    private static final long serialVersionUID = 1L;
    @XStreamAlias("PatientId")
    private String patientId;
    @XStreamAlias("VisitId")
    private String visitId;
    @XStreamAlias("ScheduleId")
    private String scheduleId;
    @XStreamAlias("DeptStayed")
    private String deptStayed;
    @XStreamAlias("BedNo")
    private String bedNo;
    @XStreamAlias("ScheduledDateTime")
    private Date scheduledDateTime;
    @XStreamAlias("OperatingRoom")
    private String operatingRoom;
    @XStreamAlias("OperatingRoomNo")
    private String operatingRoomNo;
    @XStreamAlias("Sequence")
    private String sequence;
    @XStreamAlias("DiagBeforeOperation")
    private String diagBeforeOperation;
    @XStreamAlias("PatientCondition")
    private String patientCondition;
    @XStreamAlias("OperationScale")
    private String operationScale;
    @XStreamAlias("IsolationIndicator")
    private Integer isolationIndicator;
    @XStreamAlias("OperatingDept")
    private String operatingDept;
    @XStreamAlias("Surgeon")
    private String surgeon;

    // 第一手术助手
    @XStreamAlias("FirstAssistant")
    private String firstAssistant;

    // 第二手术助手
    @XStreamAlias("SecondAssistant")
    private String secondAssistant;
    @XStreamAlias("ThirdAssistant")
    private String thirdAssistant;
    @XStreamAlias("FourthAssistant")
    private String fourthAssistant;

    // 麻醉方法
    @XStreamAlias("AnesthesiaMethod")
    private String anesthesiaMethod;

    // 麻醉医生
    @XStreamAlias("AnesthesiaDoctor")
    private String anesthesiaDoctor;

    // 副麻医生1
    @XStreamAlias("SecondAnesthesiaDoctor")
    private String secondAnesthesiaDoctor;
    // 副麻3
    @XStreamAlias("ThirdAnesthesiaDoctor")
    private String thirdAnesthesiaDoctor;

    // 麻醉助手1
    @XStreamAlias("AnesthesiaAssistant")
    private String anesthesiaAssistant;
    // 麻醉助手2
    @XStreamAlias("SecondAnesthesiaAssistant")
    private String secondAnesthesiaAssistant;
    @XStreamAlias("ThirdAnesthesiaAssistant")
    private String thirdAnesthesiaAssistant;
    @XStreamAlias("FourthAnesthesiaAssistant")
    private String fourthAnesthesiaAssistant;
    @XStreamAlias("BloodTranDoctor")
    private String bloodTranDoctor;

    // 第一台上护士
    @XStreamAlias("FirstOperationNurse")
    private String firstOperationNurse;
    @XStreamAlias("SecondOperationNurse")
    private String secondOperationNurse;
    @XStreamAlias("ThirdOperationNurse")
    private String thirdOperationNurse;

    // 第一供应护士
    @XStreamAlias("FirstSupplyNurse")
    private String firstSupplyNurse;
    @XStreamAlias("SecondSupplyNurse")
    private String secondSupplyNurse;
    @XStreamAlias("ThirdSupplyNurse")
    private String thirdSupplyNurse;
    @XStreamAlias("NotesOnOperation")
    private String notesOnOperation;
    @XStreamAlias("ReqDateTime")
    private Date reqDateTime;
    @XStreamAlias("EnteredBy")
    private String enteredBy;
    @XStreamAlias("Status")
    private String status;
    @XStreamAlias("OperationPosition")
    private String operationPosition;
    @XStreamAlias("SpecialEquipment")
    private String specialEquipment;
    @XStreamAlias("SpecialInfect")
    private String specialInfect;

    private Integer ackIndicator;
    @XStreamAlias("EmergencyIndicator")
    private Integer emergencyIndicator;

    private String reckGroup;

    private Integer operId;

    // 屏山医院使用，存放视图hisbrid字段值
    private String reserved1;

    private String reserved2;

    private Integer hepatitisIndicator;

    private String operationId;

    private String reserved3;

    private String reserved4;

    private String reserved5;

    private String reserved6;

    private String reserved7;

    private String reserved8;

    private Date reserved9;

    private Date reserved10;

    private Integer reserved11;

    private Integer reserved12;

    // 默认为0,已分配为1,已提交为2,已作废为-1,3手术开始,4出手术室 -1已作废
    private Integer state;

    @XmlElement(name = "OperationName")
    private String operationName;

    private Integer operatingTime;

    // 默认为0,10表示取消过,20表示作废
    private Integer stateFlag;

    public String getDeptStayed() {
        return deptStayed;
    }

    public void setDeptStayed(String deptStayed) {
        this.deptStayed = deptStayed == null ? null : deptStayed.trim();
    }

    public String getBedNo() {
        return bedNo;
    }

    public void setBedNo(String bedNo) {
        this.bedNo = bedNo == null ? null : bedNo.trim();
    }

    public Date getScheduledDateTime() {
        return scheduledDateTime;
    }

    public void setScheduledDateTime(Date scheduledDateTime) {
        this.scheduledDateTime = scheduledDateTime;
    }

    public String getOperatingRoom() {
        return operatingRoom;
    }

    public void setOperatingRoom(String operatingRoom) {
        this.operatingRoom = operatingRoom == null ? null : operatingRoom.trim();
    }

    public String getOperatingRoomNo() {
        return operatingRoomNo;
    }

    public void setOperatingRoomNo(String operatingRoomNo) {
        this.operatingRoomNo = operatingRoomNo == null ? null : operatingRoomNo.trim();
    }

    public String getSequence() {
        return sequence;
    }

    public void setSequence(String sequence) {
        this.sequence = sequence;
    }

    public String getDiagBeforeOperation() {
        return diagBeforeOperation;
    }

    public void setDiagBeforeOperation(String diagBeforeOperation) {
        this.diagBeforeOperation = diagBeforeOperation == null ? null : diagBeforeOperation.trim();
    }

    public String getPatientCondition() {
        return patientCondition;
    }

    public void setPatientCondition(String patientCondition) {
        this.patientCondition = patientCondition == null ? null : patientCondition.trim();
    }

    public String getOperationScale() {
        return operationScale;
    }

    public void setOperationScale(String operationScale) {
        this.operationScale = operationScale == null ? null : operationScale.trim();
    }

    public Integer getIsolationIndicator() {
        return isolationIndicator;
    }

    public void setIsolationIndicator(Integer isolationIndicator) {
        this.isolationIndicator = isolationIndicator;
    }

    public String getOperatingDept() {
        return operatingDept;
    }

    public void setOperatingDept(String operatingDept) {
        this.operatingDept = operatingDept == null ? null : operatingDept.trim();
    }

    public String getSurgeon() {
        return surgeon;
    }

    public void setSurgeon(String surgeon) {
        this.surgeon = surgeon == null ? null : surgeon.trim();
    }

    public String getFirstAssistant() {
        return firstAssistant;
    }

    public void setFirstAssistant(String firstAssistant) {
        this.firstAssistant = firstAssistant == null ? null : firstAssistant.trim();
    }

    public String getSecondAssistant() {
        return secondAssistant;
    }

    public void setSecondAssistant(String secondAssistant) {
        this.secondAssistant = secondAssistant == null ? null : secondAssistant.trim();
    }

    public String getThirdAssistant() {
        return thirdAssistant;
    }

    public void setThirdAssistant(String thirdAssistant) {
        this.thirdAssistant = thirdAssistant == null ? null : thirdAssistant.trim();
    }

    public String getFourthAssistant() {
        return fourthAssistant;
    }

    public void setFourthAssistant(String fourthAssistant) {
        this.fourthAssistant = fourthAssistant == null ? null : fourthAssistant.trim();
    }

    public String getAnesthesiaMethod() {
        return anesthesiaMethod;
    }

    public void setAnesthesiaMethod(String anesthesiaMethod) {
        this.anesthesiaMethod = anesthesiaMethod == null ? null : anesthesiaMethod.trim();
    }

    public String getAnesthesiaDoctor() {
        return anesthesiaDoctor;
    }

    public void setAnesthesiaDoctor(String anesthesiaDoctor) {
        this.anesthesiaDoctor = anesthesiaDoctor == null ? null : anesthesiaDoctor.trim();
    }

    public String getAnesthesiaAssistant() {
        return anesthesiaAssistant;
    }

    public void setAnesthesiaAssistant(String anesthesiaAssistant) {
        this.anesthesiaAssistant = anesthesiaAssistant == null ? null : anesthesiaAssistant.trim();
    }

    public String getBloodTranDoctor() {
        return bloodTranDoctor;
    }

    public void setBloodTranDoctor(String bloodTranDoctor) {
        this.bloodTranDoctor = bloodTranDoctor == null ? null : bloodTranDoctor.trim();
    }

    public String getFirstOperationNurse() {
        return firstOperationNurse;
    }

    public void setFirstOperationNurse(String firstOperationNurse) {
        this.firstOperationNurse = firstOperationNurse == null ? null : firstOperationNurse.trim();
    }

    public String getSecondOperationNurse() {
        return secondOperationNurse;
    }

    public void setSecondOperationNurse(String secondOperationNurse) {
        this.secondOperationNurse = secondOperationNurse == null ? null : secondOperationNurse.trim();
    }

    public String getFirstSupplyNurse() {
        return firstSupplyNurse;
    }

    public void setFirstSupplyNurse(String firstSupplyNurse) {
        this.firstSupplyNurse = firstSupplyNurse == null ? null : firstSupplyNurse.trim();
    }

    public String getSecondSupplyNurse() {
        return secondSupplyNurse;
    }

    public void setSecondSupplyNurse(String secondSupplyNurse) {
        this.secondSupplyNurse = secondSupplyNurse == null ? null : secondSupplyNurse.trim();
    }

    public String getNotesOnOperation() {
        return notesOnOperation;
    }

    public void setNotesOnOperation(String notesOnOperation) {
        this.notesOnOperation = notesOnOperation == null ? null : notesOnOperation.trim();
    }

    public String getEnteredBy() {
        return enteredBy;
    }

    public void setEnteredBy(String enteredBy) {
        this.enteredBy = enteredBy == null ? null : enteredBy.trim();
    }

    public Date getReqDateTime() {
        return reqDateTime;
    }

    public void setReqDateTime(Date reqDateTime) {
        this.reqDateTime = reqDateTime;
    }

    public String getThirdSupplyNurse() {
        return thirdSupplyNurse;
    }

    public void setThirdSupplyNurse(String thirdSupplyNurse) {
        this.thirdSupplyNurse = thirdSupplyNurse == null ? null : thirdSupplyNurse.trim();
    }

    public Integer getAckIndicator() {
        return ackIndicator;
    }

    public void setAckIndicator(Integer ackIndicator) {
        this.ackIndicator = ackIndicator;
    }

    public Integer getEmergencyIndicator() {
        return emergencyIndicator;
    }

    public void setEmergencyIndicator(Integer emergencyIndicator) {
        this.emergencyIndicator = emergencyIndicator;
    }

    public String getReckGroup() {
        return reckGroup;
    }

    public void setReckGroup(String reckGroup) {
        this.reckGroup = reckGroup == null ? null : reckGroup.trim();
    }

    public Integer getOperId() {
        return operId;
    }

    public void setOperId(Integer operId) {
        this.operId = operId;
    }

    public String getSecondAnesthesiaAssistant() {
        return secondAnesthesiaAssistant;
    }

    public void setSecondAnesthesiaAssistant(String secondAnesthesiaAssistant) {
        this.secondAnesthesiaAssistant =
                secondAnesthesiaAssistant == null ? null : secondAnesthesiaAssistant.trim();
    }

    public String getThirdAnesthesiaAssistant() {
        return thirdAnesthesiaAssistant;
    }

    public void setThirdAnesthesiaAssistant(String thirdAnesthesiaAssistant) {
        this.thirdAnesthesiaAssistant =
                thirdAnesthesiaAssistant == null ? null : thirdAnesthesiaAssistant.trim();
    }

    public String getFourthAnesthesiaAssistant() {
        return fourthAnesthesiaAssistant;
    }

    public void setFourthAnesthesiaAssistant(String fourthAnesthesiaAssistant) {
        this.fourthAnesthesiaAssistant =
                fourthAnesthesiaAssistant == null ? null : fourthAnesthesiaAssistant.trim();
    }

    public String getSecondAnesthesiaDoctor() {
        return secondAnesthesiaDoctor;
    }

    public void setSecondAnesthesiaDoctor(String secondAnesthesiaDoctor) {
        this.secondAnesthesiaDoctor =
                secondAnesthesiaDoctor == null ? null : secondAnesthesiaDoctor.trim();
    }

    public String getThirdAnesthesiaDoctor() {
        return thirdAnesthesiaDoctor;
    }

    public void setThirdAnesthesiaDoctor(String thirdAnesthesiaDoctor) {
        this.thirdAnesthesiaDoctor =
                thirdAnesthesiaDoctor == null ? null : thirdAnesthesiaDoctor.trim();
    }

    public String getReserved1() {
        return reserved1;
    }

    public void setReserved1(String reserved1) {
        this.reserved1 = reserved1 == null ? null : reserved1.trim();
    }

    public String getReserved2() {
        return reserved2;
    }

    public void setReserved2(String reserved2) {
        this.reserved2 = reserved2 == null ? null : reserved2.trim();
    }

    public String getOperationPosition() {
        return operationPosition;
    }

    public void setOperationPosition(String operationPosition) {
        this.operationPosition = operationPosition == null ? null : operationPosition.trim();
    }

    public String getSpecialEquipment() {
        return specialEquipment;
    }

    public void setSpecialEquipment(String specialEquipment) {
        this.specialEquipment = specialEquipment == null ? null : specialEquipment.trim();
    }

    public String getSpecialInfect() {
        return specialInfect;
    }

    public void setSpecialInfect(String specialInfect) {
        this.specialInfect = specialInfect == null ? null : specialInfect.trim();
    }

    public Integer getHepatitisIndicator() {
        return hepatitisIndicator;
    }

    public void setHepatitisIndicator(Integer hepatitisIndicator) {
        this.hepatitisIndicator = hepatitisIndicator;
    }

    public String getOperationId() {
        return operationId;
    }

    public void setOperationId(String operationId) {
        this.operationId = operationId == null ? null : operationId.trim();
    }

    public String getReserved3() {
        return reserved3;
    }

    public void setReserved3(String reserved3) {
        this.reserved3 = reserved3 == null ? null : reserved3.trim();
    }

    public String getReserved4() {
        return reserved4;
    }

    public void setReserved4(String reserved4) {
        this.reserved4 = reserved4 == null ? null : reserved4.trim();
    }

    public String getReserved5() {
        return reserved5;
    }

    public void setReserved5(String reserved5) {
        this.reserved5 = reserved5 == null ? null : reserved5.trim();
    }

    public String getReserved6() {
        return reserved6;
    }

    public void setReserved6(String reserved6) {
        this.reserved6 = reserved6 == null ? null : reserved6.trim();
    }

    public String getReserved7() {
        return reserved7;
    }

    public void setReserved7(String reserved7) {
        this.reserved7 = reserved7 == null ? null : reserved7.trim();
    }

    public String getReserved8() {
        return reserved8;
    }

    public void setReserved8(String reserved8) {
        this.reserved8 = reserved8 == null ? null : reserved8.trim();
    }

    public Date getReserved9() {
        return reserved9;
    }

    public void setReserved9(Date reserved9) {
        this.reserved9 = reserved9;
    }

    public Date getReserved10() {
        return reserved10;
    }

    public void setReserved10(Date reserved10) {
        this.reserved10 = reserved10;
    }

    public Integer getReserved11() {
        return reserved11;
    }

    public void setReserved11(Integer reserved11) {
        this.reserved11 = reserved11;
    }

    public Integer getReserved12() {
        return reserved12;
    }

    public void setReserved12(Integer reserved12) {
        this.reserved12 = reserved12;
    }

    public String getThirdOperationNurse() {
        return thirdOperationNurse;
    }

    public void setThirdOperationNurse(String thirdOperationNurse) {
        this.thirdOperationNurse = thirdOperationNurse == null ? null : thirdOperationNurse.trim();
    }

    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    public String getOperationName() {
        return operationName;
    }

    public void setOperationName(String operationName) {
        this.operationName = operationName == null ? null : operationName.trim();
    }

    public Integer getOperatingTime() {
        return operatingTime;
    }

    public void setOperatingTime(Integer operatingTime) {
        this.operatingTime = operatingTime;
    }

    public String getPatientId() {
        return patientId;
    }

    public void setPatientId(String patientId) {
        this.patientId = patientId;
    }

    public String getVisitId() {
        return visitId;
    }

    public void setVisitId(String visitId) {
        this.visitId = visitId;
    }

    public String getScheduleId() {
        return scheduleId;
    }

    public void setScheduleId(String scheduleId) {
        this.scheduleId = scheduleId;
    }

    public Integer getStateFlag() {
        return stateFlag;
    }

    public void setStateFlag(Integer stateFlag) {
        this.stateFlag = stateFlag;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (this == obj) {
            return true;
        }
        if (obj instanceof HisOperationSchedule) {
            HisOperationSchedule o = (HisOperationSchedule) obj;
            return this.patientId == o.getPatientId() && this.visitId == o.visitId && this.scheduleId == o.scheduleId;
        }
        return false;
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPatientId() == null) ? 0 : getPatientId().hashCode());
        result = prime * result + ((getVisitId() == null) ? 0 : getVisitId().hashCode());
        result = prime * result + ((getScheduleId() == null) ? 0 : getScheduleId().hashCode());
        return result;
    }
}
